package com.powernode.mybatis.mapper;

import com.powernode.mybatis.pojo.Car;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CarMapper {
    List<Car> selectCarByCondition(@Param("brand") String brand, @Param("gradePrice") Double gradePrice,
                                   @Param("carType") String carType);

    List<Car> selectCarByTrim(@Param("brand") String brand, @Param("gradePrice") Double gradePrice,
                              @Param("carType") String carType);

    int updateWithSet(Car car);

    List<Car> selectCarByChoose(@Param("brand") String brand, @Param("gradePrice") Double gradePrice,
                                @Param("carType") String carType);

    int deletedByIds(@Param("ids") Long[] ids);

    int insertBatch(@Param("carList") List<Car> cars);
}
